package jps_s10996_s7175.result;

import edu.pjwstk.jps.result.IIntegerResult;

public class IntegerResult extends SimpleResult<Integer> implements
		IIntegerResult {

	public IntegerResult(Integer obj) {
		super(obj);
	}

	@Override
	public Integer getValue() {
		return (obj);
	}

	@Override
	public String stringme() {
		return Integer.toString(getValue());
	}

	@Override
	public String toString() {
		return Integer.toString(getValue());
	}

	@Override
	public int compareTo(SingleResult o) {
		if ( o instanceof IntegerResult ) {
			return this.getValue().compareTo(((IntegerResult)o).getValue());
		} else {
			return -1;
		}
		
	}

}
